using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.UI.Design;

namespace VeryCodes.Controls.Web
{
    public class ControlsDesigner : ControlDesigner
    {
        public override string GetDesignTimeHtml()
        {
            Control ctrl = (Control)this.Component;
            StringBuilder sb = new StringBuilder();
            sb.AppendFormat(
                "<span style=\"display:block; text-align:center; font-size:14px; font-family: Arial; background-color: #eeeeee; padding:2px; border: #cccccc dotted 2px; width:160px; height:30px;line-height:30px;\">{0}</span>",
                ctrl.ID);
            return sb.ToString();
        }

        public override bool AllowResize
        {
            get { return false; }
        }
    }
}
